package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;

import com.woniuxy.entity.dto.FapiaoDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @TableName z_fapiao
 */
@TableName(value ="z_fapiao")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Fapiao  {
    private String id;//流水单号

    private String dingdanId;//订单号

    private String duiMoneyId;//对账单号

    private String yingfuMoneyId;//应付单号

    private Integer status;//开票状态

    private BigDecimal kaipiaoMoney;//开票金额

    private String rId;//开票人id
    private String time;//开票时间
    private String fapiaoStatus;
    private String shibiehao;
    private String kaihuhang;
    private String kahao;
    private String shuiwufuwu;
    private String shui;//税额
    private String remark;

    public Fapiao(FapiaoDTO fapiaoDTO){
        //把dto的属性值赋给当前对象
        //参数1：数据来源
        //参数2：目标对象
        BeanUtils.copyProperties(fapiaoDTO,this);
    }
}